import request from "@/utils/request";

// 查询客户附件列表
export function listBizCustomerFile(query) {
  return request({
    url: "/biz/bizCustomerFile/list",
    method: "get",
    params: query,
  });
}

// 查询客户附件详细
export function getBizCustomerFile(id) {
  return request({
    url: "/biz/bizCustomerFile/" + id,
    method: "get",
  });
}

// 新增客户附件
export function addBizCustomerFile(data) {
  return request({
    url: "/biz/bizCustomerFile",
    method: "post",
    data: data,
  });
}

// 修改客户附件
export function updateBizCustomerFile(data) {
  return request({
    url: "/biz/bizCustomerFile",
    method: "put",
    data: data,
  });
}

// 删除客户附件
export function delBizCustomerFile(id) {
  return request({
    url: "/biz/bizCustomerFile/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizCustomerFile/findMaxSort",
    method: "get",
  });
}
// 导出客户附件
export function exportBizCustomerFile(query) {
  return request({
    url: "/biz/bizCustomerFile/export",
    method: "get",
    params: query,
  });
}
